home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / tcl / tclm_1_0.lha / tclm-1.0 / MLIB / DEVICES next >
Text File  |  1993-08-16  |  1KB  |  27 lines

  1.   So you want to write an interface between tclm and your
  2. favorite MIDI driver.  I must first warn you of a few caveats.
  3. Though I've tried to avoid it, I guessing that the interface
  4. hooks I've set up are geared towards MPU401 compatible
  5. drivers.  This wasn't done intentionally, it's just I don't
  6. know anything about SoundBlasters or other cards and don't
  7. have any idea how the interface is designed.
  8.   It is also possible that the device hooks a oriented at
  9. the BSD/386 driver.  Again I tried to avoid it, but it is
  10. the only driver I am familiar with.
  11.   Well, enough warnings, this is what you have to do.  Just
  12. create a file containing all the routines listed in mdevice.h
  13. and fill them in.  Some assumptions were made when I decided
  14. to make this routines the interface points.
  15.   Assumption one is that the midi device is only one descriptor.
  16. This might seem like a basic assumption, but it was not the case
  17. with the old BSD/386 MPU-401 driver.  BTW, the old driver is no
  18. long supported.
  19.   Assumption number two isn't too bad.  I've assumed the device
  20. can make use of the reltempo parameter to the init_midi_device
  21. routine.  If it can't, then just ignore it.
  22.   Ok, I think that's it, otherwise the routines should allow
  23. some bit of flexibility in actual implementation.  Here are
  24. the routines, what they should do and their parameters.
  25.   See the tclm_interfaces(3) man page for information about
  26. the routines you need to write.
  27.